import { ProFormInstance } from '@/components/ProForm/interface';
import { ProTableInstance } from '@/components/ProTable/interface';
import { TableColumnCtx } from 'element-plus';

export interface publicType {
  colorType: 'success' | 'warning' | 'danger';
}

// 未知的对象
export interface UnknownObjProps {
  [key: string]: any;
}

export interface OtherDetailParams {
  count: number;
  sum: number;
  group: groupProp[];
}
export interface groupProp {
  key: string;
  value: string;
}

export interface ProTableValue {
  value?: ProTableInstance | undefined;
}

export interface ProFormValue {
  value?: ProFormInstance | undefined;
}

export interface defaultParams {
  id: any;
}

export interface defaultDateParams {
  dateScope: string;
}

export interface defaultDateParams2 {
  startTime: string;
  endTime: string;
}

export interface defaultParams2 extends defaultParams {
  status: 0 | 1;
}
export interface ReqParams {
  id: string;
}

export interface ResDefaultDate {
  douser: string;
  dotime: string;
  uptime: string;
}

export interface EchartsSeriesDataProp {
  value: number;
  name: string;
}

export interface SpanMethodProps<T = any, R = any> {
  row: R;
  column: TableColumnCtx<T>;
  rowIndex: number;
  columnIndex: number;
}
